CC=g++
RANLIB=ranlib

LIBSRC=fileperf.cpp iNodePref.cpp FAT32Pref.cpp
LIBOBJ=$(LIBSRC:.cpp=.o)

INCS=-I.
CFLAGS = -Wall -g $(INCS)
LOADLIBES = -L./ 

OSMLIB = libfileperf.a
TARGETS = $(OSMLIB)

all: $(TARGETS)

$(TARGETS): $(LIBOBJ)
	$(AR) $(ARFLAGS) $@ $^
	$(RANLIB) $@

clean:
	$(RM) $(TARGETS) $(OSMLIB) $(OBJ) $(LIBOBJ) *~ *core *.o tester test.txt


depend:
	makedepend -- $(CFLAGS) -- $(SRC) $(LIBSRC)

cleanObjects:
	rm *.o
	
fileperf.o: fileperf.cpp
	g++ -Wall -lm -c fileperf.cpp  -o fileperf.o
	
INodePref.o: INodePref.cpp
	g++ -Wall -lm -c INodePref.cpp  -o INodePref.o

FAT32Pref.o: FAT32Pref.cpp
	g++ -Wall -lm -c FAT32Pref.cpp  -o FAT32Pref.o